using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string url = Request.Url.Segments[2];
        switch(url){
            case "Default.aspx": botonDef.CssClass = "activePri"; break;
            case "Clientes.aspx": botonCli.CssClass = "activePri"; break;
            case "Empleados.aspx": botonEmp.CssClass = "activePri"; break;
            case "Proyectos.aspx": botonPro.CssClass = "activePri"; break;
            case "ECS.aspx": botonECS.CssClass = "activePri"; break;
            case "Versiones.aspx": botonVer.CssClass = "activeSec"; break;
            case "VersionesCalidad.aspx": botonVCa.CssClass = "activeSec"; break;
            case "Solicitudes_Usuario.aspx": botonSUs.CssClass = "activeSec"; break;
            case "Solicitudes_Lider.aspx": botonSLi.CssClass = "activeSec"; break;
            case "Solicitudes_Evaluador.aspx": botonSEv.CssClass = "activeSec"; break;
            case "Cuentas.aspx": botonCue.CssClass = "activePri"; break;
            case "Perfiles.aspx": botonPer.CssClass = "activePri"; break;
            case "Consultas.aspx": botonCon.CssClass = "activePri"; break;
        }
    }
}
